/* Minecraft Memes 工具样式 - 统一风格版本 */
@import url('/minecraft-font.css');

/* 使用网站统一的CSS变量 */
:root {
    --minecraft-green: #44bd32;
    --minecraft-dark: #1D1C1A;
    --minecraft-gray: #666666;
    --minecraft-accent: #FF8C00;
    --minecraft-secondary: #3B8526;
    --minecraft-bg: #121212;
    --minecraft-panel: #1D1C1A;
    --minecraft-dirt: #8B4513;
    --minecraft-stone: #7D7D7D;
    --card-hover: rgba(59, 133, 38, 0.2);
}

/* 基础容器样式 - 参考color-codes工具 */
.tool-container {
    position: relative;
    overflow: hidden;
    background: var(--minecraft-panel);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 0 var(--minecraft-secondary);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
}

/* 装饰元素 - 与color-codes保持一致 */
.grass-block-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA7klEQVRYhe2XMQ7CMAxFXzN0YekROAE34QQMnIuJiYGJgYmJlSNwBA7AAVjKgFo1VdM4aZGKJUt/cPLlO3acCPwTCnAFHsAZGAKhxvlb4r9KAAfDHKAHzIE18AC2wBiIFP4VMAdK4A7MgF7dgnGvp2QsExjV+KcGO7XBNW8JXNJkAuwa5qwU/0yYQA6cFH8T0uCo+JtQvucmToWCEeBXwSiQyVwmqlEQ41bB1fX8Vi2ZMQp6zv2XgnwPHQWZo6DG5Ypw9/xKyecK9kmDRiiZr9LEDzKRKbiSuVsXvO1kpKyC02ve+gqWoODzf+CvPAFUVvdRnE1w7QAAAABJRU5ErkJggg==');
    background-size: cover;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

.diamond-ore-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA1klEQVQ4y83TMUoDQRTG8d/GQrCxVBCxSBFIYWMjeIFcQG+QK3iEXMAT2HkA02lI6QWsUqS1SGGRQrGwsfCzsJFld2Z3C/3gwQzD+/7vzTCpVqsI4hjbmHc5/sYAE/iqC2pJTGunMNFiPsA++jjAVdF8lKOvchXrBVTxlRVzknNgU0u5H0DI3J4aAOXC+CnvwDGupeBrPOI9ZD7MqLnDFt7yCrjNqOliA5M8AkJTb3RwhnbMXOAZRw14nOAhZN7AKe5rAr5xjlFsE5WYwgzP+V3/v3TxiAs8pVzfogKMEF94h+YAAAAASUVORK5CYII=');
    background-size: cover;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

/* 在大屏幕上显示装饰 */
@media (min-width: 1024px) {
    .grass-block-decoration,
    .diamond-ore-decoration {
        display: block;
    }
}

/* 页面标题样式 */
.minecraft-title {
    font-family: 'Minecraft', 'Courier New', monospace;
    color: var(--minecraft-green);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.subtitle {
    color: #CCCCCC;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-style: italic;
    opacity: 0.9;
}

/* 控制栏样式 - 参考color-codes */
.memes-controls {
    background: var(--minecraft-panel);
    border-radius: 2px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.memes-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.memes-controls h2 {
    color: var(--minecraft-green);
    font-family: 'Minecraft', monospace;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
}





/* Memes 网格布局 */
.memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Meme 卡片样式 - 参考color-codes卡片风格 */
.meme-card {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.meme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.meme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
    background-color: var(--card-hover);
}

/* Meme 头部信息 */
.meme-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.meme-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--minecraft-gray);
    font-size: 0.9rem;
}

.meme-time {
    opacity: 0.8;
    color: var(--minecraft-green);
    font-weight: bold;
}



/* Meme 内容 */
.meme-content {
    margin-bottom: 1rem;
}

.meme-title {
    color: #E0E0E0;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.meme-text {
    color: #CCCCCC;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.meme-image {
    text-align: center;
    margin: 1rem 0;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.meme-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.meme-image:hover img {
    transform: scale(1.05);
}

/* Meme 统计和操作 */
.meme-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(68, 189, 50, 0.3);
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--minecraft-gray);
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-count {
    font-weight: bold;
    color: var(--minecraft-green);
}

.meme-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: linear-gradient(135deg, var(--minecraft-green), var(--minecraft-secondary));
    border: 1px solid var(--minecraft-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--minecraft-secondary), var(--minecraft-green));
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* 按钮样式 - 统一风格 */
.minecraft-btn {
    background: linear-gradient(135deg, var(--minecraft-green), var(--minecraft-secondary));
    border: 2px solid var(--minecraft-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.minecraft-btn:hover {
    background: linear-gradient(135deg, var(--minecraft-secondary), var(--minecraft-green));
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}



/* 社区功能区域 */
.community-section {
    background: var(--minecraft-panel);
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.community-section h2 {
    color: var(--minecraft-green);
    font-family: 'Minecraft', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
    background-color: var(--card-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #E0E0E0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.feature-card p {
    color: #CCCCCC;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}



/* 过滤动画 */
.meme-card.hidden {
    display: none;
}

.meme-card.visible {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--minecraft-gray);
    font-size: 1.2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--minecraft-gray);
    border-top: 2px solid var(--minecraft-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具特点与功能介绍样式 */
.tool-features-section {
    background: var(--minecraft-panel);
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.tool-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.tool-features-section h2 {
    color: var(--minecraft-green);
    font-family: 'Minecraft', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
}

.tool-features-section h3 {
    color: var(--minecraft-green);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
    background-color: var(--card-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #E0E0E0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

.feature-item p {
    color: #CCCCCC;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 使用指南样式 */
.usage-guide {
    margin: 3rem 0;
}

.steps-container {
    display: grid;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(68, 189, 50, 0.1);
    padding: 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--minecraft-secondary);
}

.step-number {
    background: var(--minecraft-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.step-content h4 {
    color: var(--minecraft-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.step-content p {
    color: #CCCCCC;
    line-height: 1.5;
    margin: 0;
}

/* 工具优势样式 */
.tool-benefits {
    margin: 3rem 0;
}

.benefits-list {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(68, 189, 50, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(68, 189, 50, 0.2);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item strong {
    color: var(--minecraft-green);
    margin-right: 0.5rem;
}

.benefit-item {
    color: #CCCCCC;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .minecraft-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .memes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .meme-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-features-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .tool-features-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .minecraft-title {
        font-size: 1.6rem;
    }
    

}