/* Data Pack Tutorial 工具样式 - 统一color-codes风格 */

/* 基础容器样式 */
.tool-container {
    position: relative;
    overflow: hidden;
}

/* 装饰元素 - 与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; /* 在大屏幕上才显示 */
}

/* 版本选择器样式 - 统一样式 */
.version-selector-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;
}

.version-selector-container::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;
}

.version-selector-container h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    color: #CCCCCC;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.version-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    border-radius: 2px;
    cursor: pointer;
    padding: 20px;
}

.version-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;
}

.version-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.version-card.current {
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
}

.version-card.selected {
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.15);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.version-number {
    font-weight: bold;
    font-size: 1.1em;
    color: #E0E0E0;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'VT323', monospace;
}

.status-badge.current {
    background: var(--minecraft-green);
    color: white;
}

.status-badge.upcoming {
    background: var(--minecraft-accent);
    color: white;
}

.status-badge.stable {
    background: var(--minecraft-secondary);
    color: white;
}

.status-badge.legacy {
    background: #666666;
    color: white;
}

.pack-format {
    font-family: 'Noto Sans Mono', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 8px;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
    color: var(--minecraft-green);
}

.version-description {
    color: #AAAAAA;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.select-version-btn {
    width: 100%;
    background: var(--minecraft-green);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    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);
    border-radius: 2px;
}

.select-version-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.selected-version-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    border: 2px solid var(--minecraft-green);
    position: relative;
}

.selected-version-info h3 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    color: #E0E0E0;
    padding: 20px;
    border-radius: 2px;
    margin: 15px 0;
    position: relative;
    font-family: 'Noto Sans Mono', monospace;
    overflow-x: auto;
    border: 1px solid var(--minecraft-secondary);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--minecraft-green);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
}

.copy-code-btn:hover {
    background: var(--minecraft-secondary);
}

/* 教程步骤样式 */
.tutorial-steps-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;
}

.tutorial-steps-container::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;
}

.tutorial-steps-container h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.steps-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.step-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #E0E0E0;
    text-decoration: none;
}

.step-nav-btn:hover {
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
    transform: translateY(-2px);
}

.step-nav-btn.active {
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.15);
}

.step-icon {
    font-size: 1.5em;
}

.step-title {
    font-weight: bold;
    color: #E0E0E0;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.tutorial-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--minecraft-secondary);
    position: relative;
    z-index: 1;
}

.tutorial-step {
    display: none;
    padding: 25px;
}

.tutorial-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--minecraft-secondary);
}

.step-header .step-icon {
    font-size: 2em;
}

.step-header h3 {
    margin: 0;
    color: var(--minecraft-green);
    font-size: 1.5em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* 操作系统指导样式 */
.os-instructions {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.os-instruction {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    border-left: 4px solid var(--minecraft-green);
    border: 1px solid var(--minecraft-secondary);
}

.os-instruction h5 {
    margin: 0 0 10px 0;
    color: var(--minecraft-green);
    font-size: 1.1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.os-instruction p {
    margin: 10px 0;
    color: #AAAAAA;
}

.path-example {
    background: rgba(0, 0, 0, 0.4);
    color: #E0E0E0;
    padding: 10px;
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--minecraft-secondary);
}

kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 2px 6px;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.9em;
    color: var(--minecraft-green);
}

/* 文件夹结构样式 */
.folder-structure {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    margin: 15px 0;
    border: 1px solid var(--minecraft-secondary);
}

.folder-tree {
    font-family: 'Noto Sans Mono', monospace;
    line-height: 1.6;
}

.folder-item {
    margin: 3px 0;
    color: #E0E0E0;
}

.folder-item.indent-1 {
    margin-left: 20px;
}

.folder-item.indent-2 {
    margin-left: 40px;
}

.folder-item.indent-3 {
    margin-left: 60px;
}

/* JSON解释样式 */
.mcmeta-explanation {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    margin: 20px 0;
    border: 1px solid var(--minecraft-secondary);
}

.json-explanation {
    display: grid;
    gap: 10px;
}

.json-field {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 2px;
    border-left: 4px solid var(--minecraft-green);
    color: #AAAAAA;
}

.json-field strong {
    color: var(--minecraft-green);
    font-family: 'Noto Sans Mono', monospace;
}

/* 重要提示样式 */
.important-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--minecraft-accent);
    border-radius: 2px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--minecraft-accent);
}

.important-note h5 {
    margin: 0 0 15px 0;
    color: var(--minecraft-accent);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.important-note ul {
    margin: 0;
    padding-left: 20px;
}

.important-note li {
    margin: 8px 0;
    color: #AAAAAA;
}

.important-note code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.3rem;
    font-family: 'Noto Sans Mono', monospace;
    color: var(--minecraft-green);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

/* 命名规则样式 */
.namespace-rules {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    margin: 20px 0;
    border: 1px solid var(--minecraft-secondary);
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 2px;
    border: 1px solid var(--minecraft-secondary);
}

.rule-item.valid {
    background: rgba(68, 189, 50, 0.1);
    border-color: var(--minecraft-green);
}

.rule-item.invalid {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.rule-item code {
    font-family: 'Noto Sans Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 2px;
}

.rule-status {
    font-size: 1.2em;
}

.namespace-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    border: 1px solid var(--minecraft-secondary);
    margin: 20px 0;
}

.namespace-example h5 {
    margin: 0 0 15px 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.namespace-example ul {
    margin: 0;
    padding-left: 20px;
}

.namespace-example li {
    margin: 5px 0;
    color: #AAAAAA;
}

/* 函数示例样式 */
.first-function-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    margin: 20px 0;
    border: 1px solid var(--minecraft-secondary);
}

.first-function-example h5 {
    margin: 0 0 15px 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.testing-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    border: 1px solid var(--minecraft-secondary);
    margin: 20px 0;
}

.command-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    border-left: 4px solid var(--minecraft-green);
    border: 1px solid var(--minecraft-secondary);
}

.command-item code {
    background: rgba(0, 0, 0, 0.4);
    color: var(--minecraft-green);
    padding: 4px 8px;
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
}

.command-item span {
    color: #AAAAAA;
    font-size: 0.9em;
}

/* 内容类型卡片样式 */
.content-types-section {
    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;
}

.content-types-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;
}

.content-types-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.content-type-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    border-radius: 2px;
    padding: 20px;
}

.content-type-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;
}

.content-type-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.content-icon {
    font-size: 1.5em;
}

.content-header h3 {
    margin: 0;
    flex-grow: 1;
    color: #E0E0E0;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.complexity-badge {
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'VT323', monospace;
}

.complexity-badge.beginner {
    background: var(--minecraft-green);
    color: white;
}

.complexity-badge.intermediate {
    background: var(--minecraft-accent);
    color: white;
}

.complexity-badge.advanced {
    background: #dc3545;
    color: white;
}

.complexity-badge.expert {
    background: var(--minecraft-secondary);
    color: white;
}

.content-description {
    color: #AAAAAA;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content-details {
    margin-bottom: 15px;
}

.detail-item {
    margin: 5px 0;
    font-size: 0.9em;
    color: #AAAAAA;
}

.detail-item code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    color: var(--minecraft-green);
}

.learn-more-btn {
    width: 100%;
    background: var(--minecraft-green);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    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);
    border-radius: 2px;
}

.learn-more-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 高级功能样式 */
.advanced-features-section {
    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;
}

.advanced-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;
}

.advanced-features-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    padding: 20px;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.feature-card h3 {
    margin: 0 0 10px 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.feature-card p {
    color: #AAAAAA;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.feature-example {
    background: rgba(0, 0, 0, 0.4);
    color: #E0E0E0;
    padding: 10px;
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.8em;
    overflow-x: auto;
    border: 1px solid var(--minecraft-secondary);
}

/* 版本变化提醒样式 */
.version-changes-section {
    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-accent);
    z-index: 1;
    border-radius: 2px;
}

.version-changes-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;
}

.version-changes-section h2 {
    color: var(--minecraft-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-accent);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.change-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    padding: 20px;
}

.change-card.critical {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.change-card.important {
    border-color: var(--minecraft-accent);
    background: rgba(255, 140, 0, 0.1);
}

.change-card.info {
    border-color: var(--minecraft-secondary);
    background: rgba(59, 133, 38, 0.1);
}

.change-card.testing {
    border-color: var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
}

.change-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.change-card h3 {
    margin: 0 0 15px 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.change-details h4 {
    margin: 15px 0 10px 0;
    color: var(--minecraft-green);
    font-size: 1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.change-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.change-details li {
    margin: 5px 0;
    color: #AAAAAA;
    line-height: 1.4;
}

.change-details p {
    margin: 10px 0;
    color: #AAAAAA;
    line-height: 1.4;
}

.change-details code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    color: var(--minecraft-green);
    font-size: 0.9em;
}

/* 故障排除样式 */
.troubleshooting-section {
    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;
}

.troubleshooting-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;
}

.troubleshooting-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.issue-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 20px;
}

.issue-card h3 {
    margin: 0 0 15px 0;
    color: #dc3545;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.solution h4 {
    margin: 15px 0 10px 0;
    color: var(--minecraft-green);
    font-size: 1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.solution ul {
    margin: 10px 0;
    padding-left: 20px;
}

.solution li {
    margin: 5px 0;
    color: #AAAAAA;
    line-height: 1.4;
}

/* 响应式设计 */
@media (min-width: 992px) {
    .grass-block-decoration,
    .diamond-ore-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .version-selector-container,
    .tutorial-steps-container,
    .content-types-section,
    .advanced-features-section,
    .version-changes-section,
    .troubleshooting-section {
        padding: 1.5rem;
    }
    
    .version-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-navigation {
        grid-template-columns: 1fr;
    }
    
    .content-types-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .changes-grid {
        grid-template-columns: 1fr;
    }
    
    .os-instructions {
        grid-template-columns: 1fr;
    }
    
    .rule-grid {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-step.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* 模态框样式 */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.content-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--minecraft-panel);
    border-radius: 2px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--minecraft-green);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--minecraft-secondary);
}

.modal-header h2 {
    margin: 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #AAAAAA;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--minecraft-green);
}

.modal-body {
    padding: 25px;
}

.modal-description {
    color: #AAAAAA;
    line-height: 1.6;
    margin-bottom: 25px;
}

.examples-container {
    margin: 20px 0;
}

.example-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    border: 1px solid var(--minecraft-secondary);
}

.example-item h4 {
    margin: 0 0 10px 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.tips-list {
    margin: 15px 0;
    padding-left: 20px;
}

.tips-list li {
    margin: 8px 0;
    color: #AAAAAA;
    line-height: 1.4;
}

/* 滚动条样式 */
.code-block::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.code-block::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.code-block::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--minecraft-secondary);
    border-radius: 2px;
}

.code-block::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--minecraft-green);
}