/* Level Format Tool 专用样式 */

/* 装饰元素 */
.tool-container {
    position: relative;
    overflow: hidden;
}

.folder-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    transform: rotate(-15deg);
    opacity: 0.6;
    z-index: 0;
    border-radius: 8px;
    display: none; /* 在大屏幕上才显示 */
}

.nbt-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4169E1 0%, #6495ED 100%);
    transform: rotate(10deg);
    opacity: 0.6;
    z-index: 0;
    border-radius: 4px;
    display: none; /* 在大屏幕上才显示 */
}

/* 介绍容器 */
.intro-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;
}

.intro-container h2 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E0E0E0;
    margin-bottom: 2rem;
    text-align: center;
}

/* 功能亮点 */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(55, 55, 55, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #CCCCCC;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 目录浏览器 */
.directory-explorer {
    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);
    border-radius: 2px;
}

.directory-explorer h2 {
    color: var(--minecraft-blue);
    margin-bottom: 1rem;
    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;
}

.section-subtitle code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--minecraft-green);
}

.directory-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.directory-header {
    background: rgba(55, 55, 55, 0.8);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.directory-header:hover {
    background: rgba(70, 70, 70, 0.8);
}

.directory-header h3 {
    margin: 0;
    color: var(--minecraft-yellow);
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.2rem;
    margin-left: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.directory-section.expanded .toggle-icon {
    transform: rotate(90deg);
}

.field-category .toggle-icon {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.field-category.expanded .toggle-icon {
    transform: rotate(90deg);
}

.directory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(45, 45, 45, 0.6);
    will-change: max-height;
}

.directory-section.expanded .directory-content {
    max-height: none;
}

.file-tree {
    padding: 1rem;
}

.file-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    border-left: 2px solid transparent;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--minecraft-green);
}

.file-item.directory {
    border-left-color: rgba(255, 193, 7, 0.3);
}

.file-item.file {
    border-left-color: rgba(0, 123, 255, 0.3);
}

.file-icon {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
}

.file-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--minecraft-green);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.file-description {
    color: #CCCCCC;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* level.dat 分析器 */
.level-dat-analyzer {
    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);
    border-radius: 2px;
}

.level-dat-analyzer h2 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.nbt-structure-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--minecraft-secondary);
}

.nbt-structure-info h3 {
    color: var(--minecraft-blue);
    margin-bottom: 1rem;
}

.nbt-example {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow-x: auto;
}

.nbt-example pre {
    margin: 0;
    padding: 1rem;
    color: #E0E0E0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.nbt-example code {
    color: inherit;
    background: none;
}

.field-category {
    margin-bottom: 1.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.category-header {
    background: rgba(55, 55, 55, 0.8);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: rgba(70, 70, 70, 0.8);
}

.category-header h3 {
    margin: 0;
    color: var(--minecraft-yellow);
    font-size: 1.1rem;
    flex: 1;
}

.field-count {
    background: var(--minecraft-green);
    color: var(--minecraft-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(45, 45, 45, 0.6);
    will-change: max-height;
}

.field-category.expanded .category-content {
    max-height: none;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.field-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.field-card:hover {
    border-color: var(--minecraft-green);
    transform: translateY(-1px);
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.field-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--minecraft-green);
    font-size: 0.95rem;
}

.field-type {
    background: var(--minecraft-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.field-description {
    color: #CCCCCC;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* 区域文件系统 */
.region-system {
    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);
    border-radius: 2px;
}

.region-system h2 {
    color: var(--minecraft-red);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.region-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.region-info-card {
    background: rgba(55, 55, 55, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
}

.region-info-card h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.region-info-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.region-info-card li {
    color: #CCCCCC;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.region-info-card strong {
    color: var(--minecraft-green);
}

.example {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 4px;
    margin-top: 1rem;
    border-left: 3px solid var(--minecraft-blue);
}

.example strong {
    color: var(--minecraft-yellow);
}

.example code {
    color: var(--minecraft-green);
    font-weight: bold;
}

/* 坐标计算器 */
.chunk-calculator {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
    margin-top: 2rem;
}

.chunk-calculator h3 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
}

.calculator-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group label {
    color: var(--minecraft-yellow);
    font-weight: bold;
    min-width: 70px;
}

.input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100px;
    font-family: 'Courier New', monospace;
}

.input-group input:focus {
    border-color: var(--minecraft-green);
    outline: none;
    box-shadow: 0 0 5px rgba(85, 255, 85, 0.3);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item strong {
    color: var(--minecraft-yellow);
    display: block;
    margin-bottom: 0.5rem;
}

.result-item span {
    color: var(--minecraft-green);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* 维度系统 */
.dimension-system {
    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);
    border-radius: 2px;
}

.dimension-system h2 {
    color: var(--minecraft-purple);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dimension-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dimension-card.overworld {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.2) 0%, rgba(0, 100, 0, 0.3) 100%);
    border-color: #228B22;
}

.dimension-card.nether {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(255, 69, 0, 0.3) 100%);
    border-color: #8B0000;
}

.dimension-card.end {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2) 0%, rgba(138, 43, 226, 0.3) 100%);
    border-color: #4B0082;
}

.dimension-card.custom {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2) 0%, rgba(186, 85, 211, 0.3) 100%);
    border-color: #FF1493;
}

.dimension-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}

.dimension-card h3 {
    color: var(--minecraft-yellow);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dimension-info {
    margin-bottom: 1rem;
}

.dimension-info p {
    color: #CCCCCC;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.dimension-info strong {
    color: var(--minecraft-green);
}

.dimension-folders {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.folder-tag {
    background: rgba(0, 0, 0, 0.4);
    color: var(--minecraft-green);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 工具部分 */
.tools-section {
    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);
    border-radius: 2px;
}

.tools-section h2 {
    color: var(--minecraft-blue);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: rgba(55, 55, 55, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--minecraft-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tool-card > p {
    color: #CCCCCC;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tool-card ul {
    padding-left: 1.5rem;
    margin: 0;
}

.tool-card li {
    color: #CCCCCC;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Session Lock Format */
.session-lock-format {
    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);
    border-radius: 2px;
}

.session-lock-format h2 {
    color: var(--minecraft-red);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.format-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.format-info-card {
    background: rgba(55, 55, 55, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
}

.format-info-card h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-example {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    border-left: 3px solid var(--minecraft-green);
}

.code-detail {
    color: #CCCCCC;
    font-size: 0.85rem;
    font-style: italic;
}

.format-info-card ol,
.format-info-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.format-info-card li {
    color: #CCCCCC;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* POI Format */
.poi-format {
    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);
    border-radius: 2px;
}

.poi-format h2 {
    color: var(--minecraft-blue);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.poi-structure {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--minecraft-secondary);
}

.poi-structure h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
}

.nbt-structure {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow-x: auto;
}

.nbt-structure pre {
    margin: 0;
    padding: 1rem;
    color: #E0E0E0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.nbt-structure code {
    color: inherit;
    background: none;
}

.poi-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.poi-type-card {
    background: rgba(55, 55, 55, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
}

.poi-type-card h4 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.poi-type-card ul {
    padding-left: 1.5rem;
    margin: 0;
}

.poi-type-card li {
    color: #CCCCCC;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.poi-type-card strong {
    color: var(--minecraft-green);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.poi-type-card em {
    color: var(--minecraft-yellow);
    font-style: italic;
}

.poi-coordinates {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--minecraft-secondary);
}

.poi-coordinates h3 {
    color: var(--minecraft-blue);
    margin-bottom: 1rem;
}

.poi-coordinates ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.poi-coordinates li {
    color: #CCCCCC;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.poi-coordinates strong {
    color: var(--minecraft-green);
    font-family: 'Courier New', monospace;
}

/* 实践指南 */
.practical-guide {
    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);
    border-radius: 2px;
}

.practical-guide h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.use-case {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--minecraft-secondary);
}

.use-case h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.use-case ul {
    padding-left: 1.5rem;
    margin: 0;
}

.use-case li {
    color: #CCCCCC;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 安全实践 */
.safety-practices {
    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);
    border-radius: 2px;
}

.safety-practices h2 {
    color: var(--minecraft-red);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.safety-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
}

.safety-card.warning {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(255, 69, 0, 0.2) 100%);
    border-color: #DC143C;
}

.safety-card.tips {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: #FFD700;
}

.safety-card.compatibility {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(30, 144, 255, 0.2) 100%);
    border-color: #00BFFF;
}

.safety-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.safety-card h3 {
    color: var(--minecraft-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.safety-card ul {
    padding-left: 1.5rem;
    margin: 0;
}

.safety-card li {
    color: #CCCCCC;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.safety-card strong {
    color: var(--minecraft-green);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .folder-decoration,
    .nbt-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .calculator-inputs {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .input-group label {
        min-width: auto;
    }
    
    .input-group input {
        width: 100%;
        max-width: 200px;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.dimension-card,
.tool-card,
.safety-card {
    animation: slideIn 0.6s ease-out;
}

.field-card,
.file-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 代码高亮 */
code {
    background: rgba(0, 0, 0, 0.4);
    color: var(--minecraft-green);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}
