﻿/* Page decorations */
.tool-container {
    position: relative;
    overflow: hidden;
}

.compass-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700, #FFA500, #FF8C00);
    border: 3px solid #B8860B;
    border-radius: 50%;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    display: none; /* 在大屏幕上才显示 */
    animation: compass-spin 8s linear infinite;
}

.compass-decoration::before {
    content: 'N';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 12px;
    color: #8B0000;
}

.compass-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 30px;
    background: #8B0000;
    border-radius: 2px;
}

@keyframes compass-spin {
    from {
        transform: rotate(-15deg);
    }
    to {
        transform: rotate(345deg);
    }
}

.map-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 50px;
    background: linear-gradient(45deg, #8FBC8F, #90EE90, #8FBC8F);
    border: 2px solid #228B22;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    display: none; /* 在大屏幕上才显示 */
    border-radius: 4px;
    animation: map-glow 3s ease-in-out infinite alternate;
}

.map-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    background: #8B4513;
    border-radius: 2px;
}

.map-decoration::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 8px;
    background: #4169E1;
    border-radius: 1px;
}

@keyframes map-glow {
    from {
        box-shadow: 0 0 10px #90EE90;
    }
    to {
        box-shadow: 0 0 20px #90EE90, 0 0 30px #8FBC8F;
    }
}

/* 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);
    --minecraft-dark-green: #2F7D32;
    --minecraft-brown: #8B4513;
    --minecraft-dark-brown: #654321;
    --minecraft-light-gray: #CCCCCC;
    --minecraft-dark-gray: #2F2F2F;
    --minecraft-black: #1A1A1A;
    --minecraft-white: #FFFFFF;
    --minecraft-red: #E53E3E;
    --minecraft-blue: #3182CE;
    --minecraft-yellow: #D69E2E;
    --minecraft-border: #333;
}

/* Analyzer Container */
.analyzer-container {
    position: relative;
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.analyzer-container:hover {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(68, 189, 50, 0.1);
    transform: translateY(-2px);
}

.analyzer-container h2 {
    color: var(--minecraft-green);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 1rem;
}

/* Input Section */
.input-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--minecraft-accent);
}

.input-section h3 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.seed-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--minecraft-light-gray);
    font-weight: bold;
    font-size: 1rem;
}

.input-group input,
.input-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--minecraft-border);
    color: var(--minecraft-white);
    padding: 0.8rem;
    border-radius: 3px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--minecraft-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.3);
}

.input-group small {
    color: var(--minecraft-gray);
    font-size: 0.85rem;
}

/* Analysis Options */
.analysis-options {
    margin-bottom: 1.5rem;
}

.analysis-options h4 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--minecraft-light-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-grid label:hover {
    color: var(--minecraft-green);
}

.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--minecraft-green);
}

/* Search Radius */
.search-radius {
    margin-bottom: 2rem;
}

.search-radius label {
    color: var(--minecraft-light-gray);
    font-weight: bold;
    margin-right: 1rem;
}

.search-radius select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--minecraft-border);
    color: var(--minecraft-white);
    padding: 0.8rem;
    border-radius: 3px;
    font-size: 1rem;
}

/* Analyze Button */
.analyze-btn {
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-dark-green));
    color: var(--minecraft-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 var(--minecraft-dark-green);
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.analyze-btn:hover {
    background: linear-gradient(45deg, var(--minecraft-dark-green), var(--minecraft-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--minecraft-dark-green), 0 0 20px rgba(68, 189, 50, 0.3);
}

.analyze-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--minecraft-dark-green);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.loading-block {
    width: 20px;
    height: 20px;
    background: var(--minecraft-green);
    border-radius: 2px;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-block:nth-child(1) { animation-delay: -0.32s; }
.loading-block:nth-child(2) { animation-delay: -0.16s; }
.loading-block:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-indicator p {
    color: var(--minecraft-light-gray);
    font-size: 1.1rem;
    margin: 0;
}

/* Analysis Results */
.analysis-results {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--minecraft-green);
}

.analysis-results h3 {
    color: var(--minecraft-green);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--minecraft-border);
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.result-card h4 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--minecraft-border);
    padding-bottom: 0.5rem;
}

/* Seed Information Card */
.seed-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.detail-label {
    color: var(--minecraft-gray);
    font-weight: bold;
}

.detail-value {
    color: var(--minecraft-white);
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

/* Biome and Structure Lists */
.biome-list,
.structure-list,
.spawn-details {
    max-height: 200px;
    overflow-y: auto;
}

.biome-item,
.structure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border-left: 3px solid var(--minecraft-accent);
}

.biome-name,
.structure-name {
    color: var(--minecraft-white);
    font-weight: bold;
}

.biome-coords,
.structure-coords {
    color: var(--minecraft-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.no-results {
    color: var(--minecraft-gray);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-actions .minecraft-btn {
    background: linear-gradient(45deg, var(--minecraft-secondary), var(--minecraft-green));
    color: var(--minecraft-white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 0 var(--minecraft-dark-green);
}

.result-actions .minecraft-btn:hover {
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-secondary));
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--minecraft-dark-green), 0 0 15px rgba(68, 189, 50, 0.3);
}

/* Error Display */
.error-display {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--minecraft-red);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.error-display h4 {
    color: var(--minecraft-red);
    margin-bottom: 1rem;
}

.error-display p {
    color: var(--minecraft-light-gray);
    margin-bottom: 1.5rem;
}

/* Usage Guide */
.usage-guide {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 4px;
    border-left: 3px solid var(--minecraft-accent);
}

.usage-guide h2 {
    color: var(--minecraft-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid var(--minecraft-border);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
    transform: translateY(-2px);
}

.step-number {
    background: var(--minecraft-green);
    color: var(--minecraft-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--minecraft-light-gray);
    margin: 0;
    line-height: 1.4;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border-left: 3px solid var(--minecraft-green);
    color: var(--minecraft-light-gray);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

.biome-feature { background: linear-gradient(45deg, #8FBC8F, #90EE90); }
.structure-feature { background: linear-gradient(45deg, #8B4513, #A0522D); }
.spawn-feature { background: linear-gradient(45deg, #FFD700, #FFA500); }
.trial-feature { background: linear-gradient(45deg, #4B0082, #8A2BE2); }
.export-feature { background: linear-gradient(45deg, #4169E1, #6495ED); }
.version-feature { background: linear-gradient(45deg, #DC143C, #FF6347); }

/* Minecraft Note */
.minecraft-note {
    background: rgba(68, 189, 50, 0.1);
    border: 1px solid var(--minecraft-green);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.minecraft-note h4 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.minecraft-note p {
    color: var(--minecraft-light-gray);
    margin: 0;
    line-height: 1.5;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .compass-decoration,
    .map-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .analyzer-container {
        padding: 1rem;
    }
    
    .seed-input-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions .minecraft-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .analyzer-container h2 {
        font-size: 1.5rem;
    }
    
    .input-section h3 {
        font-size: 1.2rem;
    }
    
    .analyze-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Related Tools Section */
.related-tools-section {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin: 2rem auto;
    border: 2px solid var(--minecraft-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    width: 100%;
}

.related-tools-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: 0;
    pointer-events: none;
}

.related-tools-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.related-tools-subtitle {
    text-align: center;
    color: #AAAAAA;
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.related-tool-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 6px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(68, 189, 50, 0.3);
}

.related-tool-card .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.related-tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.related-tool-card h3 {
    color: var(--minecraft-green);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.related-tool-card p {
    color: #E0E0E0;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.relation-tag {
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .related-tools-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .related-tool-card {
        padding: 1.2rem;
    }
    
    .related-tool-card .tool-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .related-tools-section h2 {
        font-size: 1.5rem;
    }
}

