/* 
 * Minecraft House Ideas Tool 样式
 */

.intro-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid #5a5a5a;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5a5a5a;
    opacity: 0.15;
    z-index: -1;
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-boxes {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.feature-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 15px;
    flex: 1;
    text-align: center;
    border: 1px solid #6e6e6e;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #FFD700;
}

.feature-box p {
    margin: 0;
    font-size: 14px;
}

/* 过滤器样式 */
.filter-section {
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #555;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
}

.filter-btn:hover {
    background-color: #777;
}

.filter-btn.active {
    background-color: #4CAF50;
}

.difficulty-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.difficulty-filter select {
    padding: 8px;
    border-radius: 4px;
    background-color: #555;
    color: white;
    border: none;
}

/* 房屋分类样式 */
.house-category {
    margin-bottom: 40px;
}

.category-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.category-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.house-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.house-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #555;
}

.house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.house-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.house-card:hover .house-image img {
    transform: scale(1.05);
}

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.difficulty-easy {
    background-color: #4CAF50;
}

.difficulty-medium {
    background-color: #FFC107;
    color: #333;
}

.difficulty-hard {
    background-color: #F44336;
}

.difficulty-expert {
    background-color: #9C27B0;
}

.house-info {
    padding: 15px;
}

.house-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #FFD700;
}

.materials {
    margin-bottom: 10px;
    font-size: 14px;
}

.material-label {
    font-weight: bold;
    color: #aaa;
}

.house-description {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.house-tips {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.house-tips h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #FFC107;
}

.house-tips p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.view-details-btn {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    font-size: 14px;
}

/* 建筑技巧部分 */
.building-tips-section {
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #555;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.tip-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.tip-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #4CAF50;
}

.tip-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* 详细查看模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #2c2c2c;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.modal-house-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-house-title {
    flex: 1;
}

.modal-house-title h2 {
    margin-top: 0;
    color: #FFD700;
}

.modal-house-meta {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    margin-left: 20px;
}

.modal-house-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-house-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-house-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4CAF50;
}

.detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.detail-section li {
    margin-bottom: 5px;
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-loaded {
    opacity: 1;
}

/* 装饰元素 */
.grass-block-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #5B9E34;
    border: 2px solid #3D5E25;
    border-radius: 8px;
    top: 20px;
    left: -50px;
    opacity: 0.5;
    z-index: -1;
    transform: rotate(-15deg);
}

.diamond-ore-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #64EAFF;
    border: 2px solid #218B9E;
    border-radius: 8px;
    top: 50px;
    right: -40px;
    opacity: 0.5;
    z-index: -1;
    transform: rotate(15deg);
}

/* 即将推出通知 */
.coming-soon-notice {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
}

.coming-soon-notice p {
    margin: 0;
    font-size: 14px;
    color: #4CAF50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-boxes {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .house-examples {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-house-header {
        flex-direction: column;
    }
    
    .modal-house-meta {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .modal-house-image {
        height: 250px;
    }
    
    .modal-house-details {
        grid-template-columns: 1fr;
    }
} 